﻿using System;

namespace Hongsh.Pay.Client.Proxy.Http {
    // Token: 0x02000025 RID: 37
    public class HttpContext {
        // Token: 0x17000068 RID: 104
        // (get) Token: 0x0600010A RID: 266 RVA: 0x00002B40 File Offset: 0x00000D40
        public HttpServer Server {
            get {
                return Connection.Server;
            }
        }

        // Token: 0x17000069 RID: 105
        // (get) Token: 0x0600010B RID: 267 RVA: 0x00002B4D File Offset: 0x00000D4D
        public HttpConnection Connection { get; }

        // Token: 0x1700006A RID: 106
        // (get) Token: 0x0600010C RID: 268 RVA: 0x00002B55 File Offset: 0x00000D55
        public HttpRequest Request { get; }

        // Token: 0x1700006B RID: 107
        // (get) Token: 0x0600010D RID: 269 RVA: 0x00002B5D File Offset: 0x00000D5D
        public HttpResponse Response { get; }

        // Token: 0x1700006C RID: 108
        // (get) Token: 0x0600010E RID: 270 RVA: 0x00002B65 File Offset: 0x00000D65
        // (set) Token: 0x0600010F RID: 271 RVA: 0x00002B6D File Offset: 0x00000D6D
        public HttpContextActionDelegate Action { get; internal set; }

        // Token: 0x1700006D RID: 109
        // (get) Token: 0x06000110 RID: 272 RVA: 0x00002B76 File Offset: 0x00000D76
        // (set) Token: 0x06000111 RID: 273 RVA: 0x00002B7E File Offset: 0x00000D7E
        public HttpResult Result { get; set; }

        // Token: 0x1700006E RID: 110
        // (get) Token: 0x06000112 RID: 274 RVA: 0x00002B87 File Offset: 0x00000D87
        // (set) Token: 0x06000113 RID: 275 RVA: 0x00002BA4 File Offset: 0x00000DA4
        public bool KeepAlive {
            get => Response == null || Response.Header.KeepAlive;
            set => Response.Header.KeepAlive = value;
        }

        // Token: 0x1700006F RID: 111
        // (get) Token: 0x06000114 RID: 276 RVA: 0x00002BB7 File Offset: 0x00000DB7
        // (set) Token: 0x06000115 RID: 277 RVA: 0x00002BBF File Offset: 0x00000DBF
        public Exception Exception { get; set; }

        // Token: 0x06000116 RID: 278 RVA: 0x00002BC8 File Offset: 0x00000DC8
        public HttpContext(HttpConnection conn, HttpRequest req, HttpResponse res) : base() {
            //Class15.cwcZ3SWztHroi();
            //base..ctor();
            Connection = conn;
            Request = req;
            Response = res;
        }
    }
}
